package org.wangp.business.user

import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.openfeign.EnableFeignClients
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories
import org.wangp.framework.core.config.EnableAsync
import org.wangp.framework.core.config.EnableJacksonConfiguration

/**
 * @author wangpeng (๑•ᴗ•๑)
 * @since 2021/9/22 23:21
 */
@EnableAsync
@EnableJacksonConfiguration
@EnableElasticsearchRepositories("org.wangp.business.user.repository.es")
@MapperScan("org.wangp.business.user.repository.repo.mapper", lazyInitialization = true.toString())
@EnableFeignClients("org.wangp.business.user.repository.remote")
@SpringBootApplication
class UserCenterApplication

fun main(args: Array<String>) {
	runApplication<UserCenterApplication>(*args)
}
